package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Table;

/**
 * <p>
 * 系统配置表
 * </p>
 *
 * @author wangchang
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_system_config")
@ApiModel(value="SystemConfig对象", description="系统配置表")
public class SystemConfig implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    private String uid;

    @ApiModelProperty(value = "七牛云公钥")
    private String qiNiuAccessKey;

    @ApiModelProperty(value = "七牛云私钥")
    private String qiNiuSecretKey;

    @ApiModelProperty(value = "邮箱账号")
    private String email;

    @ApiModelProperty(value = "邮箱发件人用户名")
    private String emailUserName;

    @ApiModelProperty(value = "邮箱密码")
    private String emailPassword;

    @ApiModelProperty(value = "SMTP地址")
    private String smtpAddress;

    @ApiModelProperty(value = "SMTP端口")
    private String smtpPort;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "七牛云上传空间")
    private String qiNiuBucket;

    @ApiModelProperty(value = "七牛云存储区域 华东（z0），华北(z1)，华南(z2)，北美(na0)，东南亚(as0)")
    private String qiNiuArea;

    @ApiModelProperty(value = "图片是否上传七牛云 (0:否， 1：是)")
    private String uploadQiNiu;

    @ApiModelProperty(value = "图片是否上传本地存储 (0:否， 1：是)")
    private String uploadLocal;

    @ApiModelProperty(value = "图片显示优先级（ 1 展示 七牛云,  0 本地）")
    private String picturePriority;

    @ApiModelProperty(value = "七牛云域名前缀：http://images.moguit.cn")
    private String qiNiuPictureBaseUrl;

    @ApiModelProperty(value = "本地服务器域名前缀：http://localhost:8600")
    private String localPictureBaseUrl;

    @ApiModelProperty(value = "是否开启邮件通知(0:否， 1:是)")
    private String startEmailNotification;


}
